package org.langqiao.exception;

import java.util.*;

public class FinallyTest6
{
    public static void main(String[] args) {
        System.out.println(getMap());
    }
     
    public static int getMap() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("KEY", "INIT");
         int i = 0;
        try {
        	i = i+ 1;
            map.put("KEY", "TRY");
            //throw new Exception();
            int j = i/0;
            return 0;
        }
        catch (Exception e) {
            map.put("KEY", "CATCH");
            return 2;
        }
        finally {
        	i = 10;
            map.put("KEY", "FINALLY");
            map = null;
            //return 1;
        }
         
    }
}